import Vue from 'vue'
import Router from 'vue-router'
//vue非懒加载
// import Test from '@/components/test'
// import Users from '@/components/users'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Test',
      // component: Test
      //vue懒加载
      component: resolove => require(['@/components/test'],resolove)
    },
    {
      path: '/Users',
      name: 'Users',
      // component: Users
      //vue懒加载
      component: resolove => require(['@/components/users'],resolove)
    }
  ]
})
